<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>总体报表</title>
</head>

<body>
<p align="center"><strong>清远市工商局教育培训学时学分登记考核表</strong><strong> </strong></p>
<div align="center">
  <table border="1" cellspacing="0" cellpadding="0" width="583">
    <tr>
      <td width="60" rowspan="2"><p align="center"><strong>年度 </strong></p></td>
      <td width="52" rowspan="2"><p align="center"><strong>上级单位 </strong></p></td>
      <td width="52" rowspan="2"><p align="center"><strong>单位 </strong></p></td>
      <td width="55" rowspan="2"><p align="center"><strong>姓名 </strong></p></td>
      <td width="197" colspan="4"><p align="center"><strong>培训项目 </strong></p></td>
      <td width="132" rowspan="2"><p align="center"><strong>累计天数 </strong><br />
              <strong>（6学时为一天） </strong></p></td>
      <td width="88" rowspan="2"><p align="center"><strong>折合学分 </strong></p></td>
    </tr>
    <tr>
      <td width="197"><p align="center"><strong>自学 </strong></p></td>
      <td width="48"><p align="center"><strong>培训 </strong></p></td>
      <td width="48"><p align="center"><strong>考试 </strong></p></td>
      <td width="48"><p align="center"><strong>发表 </strong><br />
              <strong>文章 </strong></p></td>
    </tr>
 <!--季度循环 开始 -->
 {foreach from=$quarter_name key=quarter_id item=quarter name=quarter}
 {if not empty($user_num.$quarter_id)}
  <tr><td width="60" rowspan="{math equation="x+1" x=$user_num.$quarter_id|@count}"><p align="center"><strong>{$year}</strong><strong>年 </strong><br />
              <strong>第{$quarter}季度 </strong></p></td>
 {/if}
 {foreach from=$users.$quarter_id key=user_group_pid item=user_group name=user_group}
 
  <td width="52" rowspan="{math equation="x" x=$user_group_num.$quarter_id.$user_group_pid|@count}" valign="top"><p align="center">{$user_group_name.$user_group_pid} </p></td>
  
  {foreach from=$users.$quarter_id.$user_group_pid key=user_group_id item=user name=user}
  <td width="52" rowspan="{math equation="x" x=$user|@count}" valign="top"><p align="center">{$user_group_name.$user_group_id}</p></td>
 {foreach from=$user key=user_id item=user_score name=user_score}
   
	{if $smarty.foreach.user.first}
      
	{/if}
	{if $smarty.foreach.user_score.first}
     
      {/if}
       
      <td width="55" valign="top"><p align="center">{$user_name.$user_id}</p></td>
      <td width="197"><p align="center">{$user_score.user_study|default:''}</p></td>
      <td width="48"><p align="center">{$user_score.user_education|default:''}</p></td>
      <td width="48"><p align="center">{$user_score.user_exam|default:''}</p></td>
      <td width="48"><p align="center">{$user_score.user_report|default:''}</p></td>
      <td width="132"><p align="center">{$user_score.hours|default:0}</p></td>
      <td width="88"><p align="center">{$user_score.total}</p></td>
    </tr>
    
    
   
	
	{/foreach}
	
	{/foreach}
    {/foreach}
	{if not empty($user_num.$quarter_id)}
	  <tr>  
	  <td width="52"><p align="center"><strong>汇总</strong> </p></td> 
      <td width="52"><p align="center"><strong>&nbsp;</strong> </p></td>     
      <td width="55" valign="top"><p align="center">&nbsp;</p></td>
      <td width="197" valign="top"><p align="center">{$quarters.$quarter_id.user_study|default:''}</p></td>
      <td width="48" valign="top"><p align="center">{$quarters.$quarter_id.user_education|default:''}</p></td>
      <td width="48"><p align="center">{$quarters.$quarter_id.user_exam|default:''}</p></td>
      <td width="48" valign="top"><p align="center">{$quarters.$quarter_id.user_report|default:''}</p></td>
      <td width="132" valign="top"><p align="center">{{$quarters.$quarter_id.hours|default:0}}</p></td>
      <td width="88"><p align="center">{$quarters.$quarter_id.total|default:''}</p></td>
    </tr>
	{/if}
	{/foreach}
	
	 <tr>
	 <td width="60"><p align="center"><strong>汇总</strong> </p></td>
      <td width="52"><p align="center"><strong>&nbsp;</strong> </p></td>
       <td width="52"><p align="center"><strong>&nbsp;</strong> </p></td>
      <td width="55" valign="top"><p align="center">&nbsp;</p></td>
      <td width="197" valign="top"><p align="center">{$totals.user_study|default:''}</p></td>
      <td width="48" valign="top"><p align="center">{$totals.user_education|default:''}</p></td>
      <td width="48"><p align="center">{$totals.user_exam|default:''}</p></td>
      <td width="48" valign="top"><p align="center">{$totals.user_report|default:''}</p></td>
      <td width="132" valign="top"><p align="center">{$totals.hours|default:''}</p></td>
      <td width="88"><p align="center">{$totals.total|default:''}</p></td>
    </tr>
	
	 <!--季度循环 结束 -->
  </table>
</div>
</body>
</html>
